package com.codingman.springdemo2;

import org.springframework.beans.factory.BeanFactory;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Demo3 {

	public static void main(String[] args) {
		BeanFactory factory = new ClassPathXmlApplicationContext("applicationContext.xml");
		
		Employee employee = (Employee) factory.getBean("bean32");
		employee.show();
		
		Employee employee2 = (Employee) factory.getBean("bean33");
		employee2.show();
	}

}
